<template>
    <div class="noData">

        <div class="bg">
            <img :src="bg" alt="">
        </div>
        <p>
            <router-link to="/home/Search" tag="span">添加提醒</router-link>
        </p>

    </div>
</template>

<script>
    import bg from '@/assets/img/img_dy_empty.png'
    export default {
        name: "noData",
        data(){
            return {
                bg:bg,
                info:{}
            }
        },
        mounted() {
            this.$api.my.getInfo(this.getCookie('token')).then(res=> {
                // 执行某些操作
                this.info = res.data.data
            })

            this.$api.home.HeightRemindList(this.getCookie('token')).then(res=> {
                // 执行某些操作
                this.list = res.data.data

                if(res.data.data.length>0){
                    this.$router.push({path:'/home/height'})
                }
            })
        }
    }
</script>

<style scoped>
    .noData{
        position: relative;
        top: 3rem;

    }
    .noData p{
        text-align: center;

    }
    .bg{
        text-align: center;
        margin:1rem auto;
    }
    .noData .bg img{
        width: 9.06rem;
        display: inline-block;
    }
    p span{
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width:8rem;
        height:2.5rem;
        background:rgba(20,163,101,1);
        border-radius:0.2rem;
        font-size:0.88rem;
        font-family:PingFang SC;
        font-weight:500;
        color:rgba(255,255,255,1);
    }
</style>